package com.xyy.kingdeejdy.pojo.erp.order;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class OrderRuInfo {

    @JsonProperty("date")
    private Long date;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("number")
    private String number;
    @JsonProperty("entries")
    private List<EntriesDTO> entries;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("contactAddr")
    private String contactAddr;
    @JsonProperty("remark")
    private String remark;
    @JsonProperty("customerNumber")
    private String customerNumber;
    @JsonProperty("discRate")
    private Integer discRate;
    @JsonProperty("employeeNumber")
    private String employeeNumber;

    @NoArgsConstructor
    @Data
    public static class EntriesDTO {
        @JsonProperty("prodDate")
        private String prodDate;
        @JsonProperty("unit")
        private String unit;
        @JsonProperty("price")
        private Double price;
        @JsonProperty("qty")
        private Integer qty;
        @JsonProperty("batch")
        private String batch;
        @JsonProperty("location")
        private String location;
        @JsonProperty("remark")
        private String remark;
        @JsonProperty("productNumber")
        private String productNumber;
    }
}
